package lx.designpatterns.create.decorator.demo1;

public class Test {
    public static void main(String[] args) {
        Person person = new Person("小菜");

        //用破球鞋装饰person
        Sneakers pqx = new Sneakers(person);
        //用垮裤装饰破球鞋，以此类推...
        BigTrouser kk = new BigTrouser(pqx);
        TShirt dtx = new TShirt(kk);

        dtx.show();

        LeatherShoes px = new LeatherShoes(person);
        Tie ld = new Tie(px);
        Suit xz = new Suit(ld);

        xz.show();
    }
}
